package com.zzty.dao;

import java.util.Date;
import java.util.List;

public interface SelfExamDao {
    public String addSelfTransaction(int id);       //创建开始做题记录
    public void addStartTransaction(Integer selfExamId,Integer userId,String nowDate);
    public Boolean checkLogIn(int id);               //检查之前是否登陆
    public Boolean checkLogIn(Integer selfExamId, Integer userId);
    public Boolean checkCommit(Integer selfExamId,Integer userId);

    public Boolean commit(Integer userId,String answerUrl);                   //提交作业
    public List searchMyQuestion();         //历史题目
    public void searchMyAnswer();           //我的代码
    public void studentsWork();             //每天学生完成情况
    public String getQuestionById(Integer id);
    public List getSelfExamToTable();
    public String searchAnswerUrlById(int id);
    public List getContentByDate(String date );
    public String getUserNameById(Integer userId);
    public String getQuestionByDate(String date);
    public Integer getUserIdFromTransaction(Integer transactionId);
    public Boolean setWinner(String date,Integer winnerId);
    public Integer getSelfExamIdDate(String date,Integer clazzId);
    public String getUrlById(Integer id);
    public void setGrade(Integer transactionId, Integer score);

}
